package com.example.mapper;

import com.example.entity.Attachment;

import java.util.List;

public interface AttachmentMapper {

    int insert(Attachment attachment);

    Attachment selectById(Integer id);

    List<Attachment> selectPageList(Attachment attachment);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    void updateById(Attachment attachment);

    List<Attachment> preview(Attachment attachment);
}
